<template>
	<van-nav-bar 
	:title="pageTitle" 
	:left-text="leftText" 
	:left-arrow="leftArrow" 
	@click-left="onClickLeft"
	 :right-text="rightText"
	:fixed="true"
	/>
	
</template>
<script>
	export default {
		computed: {
			pageTitle() {
				return this.$route.meta.title
			},
			leftText(){
				return this.$route.name == 'home'?'':'返回'
			},
			leftArrow(){
				return this.$route.name ==  'home'? false : true
			},
			rightText(){
				return "2021080431 陈钱"
			}
		},
		methods: {
			onClickLeft() {
				this.$router.back();
			}
		}
	}
</script>
<style scoped="scoped">
	
</style>